package net.sky.oa.dao.talkpark.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import net.sky.oa.dao.SkyBaseDaoImpl;
import net.sky.oa.dao.talkpark.MailDao;
import net.sky.oa.model.Mail;

@SuppressWarnings("unchecked")
@Repository
public class MailDaoImpl extends SkyBaseDaoImpl<Mail> implements MailDao {
    
	public MailDaoImpl(){
		super.setPersistType(Mail.class);
	}
	
	public List<Mail> findAllMail() {
		String hql="from Mail m";
		return findByHql(hql);
	}

	
}
